package com.xm.shop.mapper;


import com.xm.shop.pojo.entity.User;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {

    User selectById(Long userId);

    /**
     * 通过用户名查询用户
     * @param userName
     * @return
     */
    User selectByUserName(String userName);

    /**
     * 添加用户信息
     * @param user
     * @return
     */
    int insertUser(User user);
}
